Skip to content

Conversation

EagleChen
Copy link
Collaborator

Currently, only support parent in bulk api for elastic client. Other apis, such as get, don't support it. Supporting all the apis means too many changes to not only the source code but also tests.

IMO, this is OK for river, as river only uses bulk api.

river/sync.go Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use fmt.Errorf is better.

@EagleChen
Copy link
Collaborator Author

@siddontang Thanks for the comments.
I've updated the code. Please review again

@siddontang
Copy link
Collaborator

@EagleChen trivis-ci builds error, river/sync.go:5: imported and not used: "errors"

You can use goimports tool https://godoc.org/golang.org/x/tools/cmd/goimports later, which can handle your import files automatically.

@EagleChen
Copy link
Collaborator Author

@siddontang
Code updated.
Thanks for the tip.

siddontang added a commit that referenced this pull request Jul 30, 2015
add support for parent relationship
@siddontang siddontang merged commit 55dc36a into go-mysql-org:master Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants